//
//  AppDelegate.swift
//  SearchHeader
//
//  Created by 万孟超 on 2023/10/11.
//

import Cocoa

class AppDelegate: NSObject, NSApplicationDelegate {

    static private(set) var instance: AppDelegate!
    
    lazy var mainVC = TabMainVC(nibName: "TabMainVC", bundle: nil)
    
    lazy var barMenu = ToolBar()
     
    lazy var mainWindowController = BaseWindowVC(viewController: mainVC)
    
    func applicationDidFinishLaunching(_ aNotification: Notification) {
        // Insert code here to initialize your application
        Self.instance = self
        mainWindowController.window?.makeKeyAndOrderFront(self)
        barMenu.setup()
    }

    func applicationWillTerminate(_ aNotification: Notification) {
        // Insert code here to tear down your application
    }

    func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
        return true
    }


}

